//
//      Copyright 2011 Hengda Xiao 224080
//
//      Millionare
//
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the License, or
//      (at your option) any later version.
//
//      This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
//
//      04.05.2011


#ifndef PLAYER_H
#define PLAYER_H



#include <string>
#include <iostream>




using std::string;
using std::cout;
using std::endl;




class Player
{


public:

    Player();

    //The following functions are used to get the different arrtibutes

    string getName(){return name;}
    int getId(){return id;}
    int getMoney(){return money;}
    int getLevel(){return level;}
    int getCorrectNum(){return correctNum;}
    Player *getNext(){return next;}
    int getFFTimes(){return ffTimes;}
    string getAnser(){return answer;}
    bool getQuit(){return quitGame;}

    //The following functions are used to set the different arrtibutes
    void setName(string tempStr){name = tempStr;}
    void setId(int tempId){id = tempId;}
    void setMoney(int tempMoney){money = tempMoney;}
    void setLevel(int tempLevel){level = tempLevel;}
    void setCorrectNum(int tempCorrect){correctNum = tempCorrect;}
    void setNext(Player *tempNext){next = tempNext;}
    void setFFTimes(int tempTimes){ffTimes = tempTimes;}
    void setAnswer(string tempAns){answer = tempAns;}
    void setQuit(bool tempQuit){quitGame = tempQuit;}

    bool GetffFlag(){return ffFlag;}
    void SetffFlag(bool temp){ffFlag = temp;}




private:
    bool ffFlag;
    string name;
    int id;
    int money;
    int level;
    int correctNum;
    int ffTimes;
    bool quitGame;
    string answer;
    Player *next;
};

#endif // PLAYER_H
